@extends("base")
@section("content")
    <div class="fix_header"></div>
    <div class="banner_1">
        <img src="{{asset('img/ny_banner3.jpg')}}">
    </div>
    <div class="container">
        <section class="page">
            <div class="leftbox">
                <h1 class="cattitle">快工</h1>
                <ul class="submenu">
                    @foreach($nav_list[$fatherId]['data'] as $nav)
                        <li>
                            <a href="{{url('/work/index/'.$nav['categoryid'])}}"
                               @if($nav['categoryid'] == $id) class="on" @endif>{{$nav['name']}}
                            </a>
                        </li>
                    @endforeach
                </ul>
                <div class="telep"><img src="{{asset('img/phone.jpg')}}"/></div>
            </div>
            <div class="mainbox">
                <div class="pagecont">
                    <div class="title">
                        <h1 class="cattitle">快工</h1>
                        <span>当前位置：首页>快工>招聘</span>
                        <div class="clear"></div>
                    </div>
                </div>
                <div class="mainbox">
                    <ul class="courses">
                        @foreach($lists as $item)
                            <?php $img = explode(',', $item->imgurl)[0] ?>
                            <li>
                                <div class="img">
                                    <a href="{{url('/work/detail/'.$item->jobid)}}">
                                        <img src='{{$item->imgurl}}' onerror="this.src='{{asset('img/new.jpg')}}'"
                                             alt="{{$item->name}}"/>
                                    </a>
                                </div>
                                <h1 class="ctitle"><a href="{{url('/work/detail/'.$item->jobid)}}">{{$item->name}}
                                        <b>基本工资：{{$item->discount.$item->discountunit}}</b></a>
                                </h1>
                                <div class="cintro">
                                    <span>简介</span>
                                    <p>{{$item->describe}}</p>
                                </div>
                            </li>
                        @endforeach
                    </ul>
                    <div class="pagelist">
                        {!! $lists->render() !!}
                    </div>
                </div>
            </div>
            <div class="clear"></div>
        </section>
    </div>
@stop